package com.techsoul.module.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.techsoul.module.order.pojo.entity.SalesOrderEvent;
import com.techsoul.module.order.pojo.param.SalesOrderEventSearchParam;
import com.techsoul.module.order.pojo.vo.SalesOrderEventVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 销售订单事件Mapper接口
 * 
 * @author liuen
 * @date 2020-12-07
 */
public interface SalesOrderEventMapper extends BaseMapper<SalesOrderEvent> {

    /**
     * 详情
     * @param id
     * @return
     */
    SalesOrderEventVo findById(String id);

    /**
     * 列表
     * @param params
     * @return
     */
    List<SalesOrderEventVo> findAll(@Param("params") SalesOrderEventSearchParam params);

    /**
     * 分页
     * @param page
     * @param params
     * @return
     */
    IPage<SalesOrderEventVo> findAll(Page page, @Param("params") SalesOrderEventSearchParam params);

}
